﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Nest;

namespace ElasticSearchDemo.Models
{
    [ElasticsearchType(RelationName = "geo")]
    public class Geo
    {

        [Keyword(Name ="name")]
        public string Name { get; set; }

        [GeoPoint(Name ="location")]
        public double [] Location { get; set; }
    }
}
